import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ProfileComponent } from './components/profile/profile.component';
import { AddressComponent } from './components/address/address.component';
import { OrderComponent } from './components/order/order.component';
import { UserComponent } from './user.component';

// 引入服务
import { CommonService } from './services/common.service';

@NgModule({
  // user模块里面的组件
  declarations: [ProfileComponent, AddressComponent, OrderComponent, UserComponent],
  // 将外部要使用的组件暴露，手动创建的
  exports:[
    ProfileComponent, AddressComponent, OrderComponent, UserComponent
  ],
  // 这里面放服务，providers是手动创建的
  providers:[CommonService],
  imports: [
    CommonModule
  ]
})
export class UserModule { }
